package com.itheima.tanhua.api.mongo;

import com.itheima.tanhua.enums.CommentType;
import com.itheima.tanhua.pojo.mongo.Comment;
import com.itheima.tanhua.pojo.mongo.Movement;
import com.itheima.tanhua.vo.mongo.pageResult;

import java.util.List;

/**
 * @author 芝士雪豹
 * @create 2022/9/24/18:50
 */
public interface MovementApi {
    //上传动态
    void publish(Movement movement);
    //查询自己动态
    pageResult findByuserId(Long userId, Integer page, Integer pagesize);
    //查询朋友动态
    List<Movement> findFriend(Long userId, Integer page, Integer pagesize);
    // 没有pid 就随机拿10个
    List findRandomten(Integer pagesize);
    //有pid 根据pid 进行查找
    List findforPid(List<Long> pid);
    //根据id查询
    Movement findById(String movementId);


}
